#include<stdio.h>
int main()
{
    int a = 12345;
    int p_1 = a/10000;
    int p_2 = a%10000/1000;
    int p_3 = a%1000/100;
    int p_4 = a%100/10;
    int p_5 = a%10;
    printf("%d %d %d %d %d",p_1,p_2,p_3,p_4,p_5);
    return 0;
}